﻿using FluentMigrator;

namespace Budget.DataBase.Migrations
{
    [Migration(2)]
    public class M002_CreateProductTable : Migration
    {
        private const string TABLE_NAME = "Products";

        public override void Up()
        {
            Create.Table(TABLE_NAME)
                .WithKeyColumn()
                .WithColumn("Name").AsString(255).NotNullable();
        }

        public override void Down()
        {
            Delete.Table(TABLE_NAME);
        }
    }
}